//
//  Constants.h
//  Tienlen
//
//  Created by Tho Hoang on 12/12/11.
//  Copyright (c) 2011 iNIL.me. All rights reserved.
//

#ifndef CungHoangDao_Constants_h
#define CungHoangDao_Constants_h

// CONFIG SERVER
#define SERVER_SIDE                 @"http://inil.me/thaitb/hoangdao/"

// IMAGES ALPHA
#define MIN_ALPHA                   0.6
#define MAX_ALPHA                   1.0

// ICAROUSEL
#define NUMBER_OF_ITEMS             2
#define NUMBER_OF_VISIBLE_ITEMS     2
#define ITEM_SPACING                210.0f
#define KEY_NAME                    @"name"
#define KEY_DATE                    @"date"
#define KEY_SLOGAN                  @"slogan"
#define KEY_FILE                    @"file"

// TYPE OF NEWS
#define HD_TINTUC                   @"hd_tintuc"
#define HD_TVHN                     @"hd_tvhn"


// POST KEYS
#define TABLE_NAME_POST             @"hd_table_name"
#define FROM_POST                   @"hd_from"
#define LENGTH_POST                 @"hd_length"

#define KEY_TITLE                   @"title"
#define KEY_INTRODUCE               @"introduce"
#define KEY_IMAGE                   @"image"
#define KEY_DETAIL_LINK             @"detail_link"
#define KEY_PUBLIC_DATE             @"public_date"

#endif

